package com.huixuebao.after.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.huixuebao.after.dto.RoleFunctionDTO;
import com.huixuebao.after.dto.RoleIdDTO;
import com.huixuebao.common.bean.ApiResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface RoleService {

    ApiResult addRoleFunction(@RequestBody RoleFunctionDTO roleFunctionDTO,HttpServletRequest request);

    ApiResult deleteRoleFunction(@RequestBody RoleIdDTO id);

    ApiResult editRoleFunction(@RequestBody RoleFunctionDTO roleFunctionDTO);

    ApiResult getRoleName();

    ApiResult getRoleList(Integer current, Integer size, String roleName, Integer roleState, HttpServletRequest request);
}
